const fetch_ = require('@jiess/utils').fetch
//启动接口过滤器
fetch_.filterStart = true;
//过滤单位时间内连续发起相同的请求
fetch_.filterTime = 1000;
//全局请求头设定
fetch_.requsetHeader = {};
//定义默认baseUrl
fetch_.baseUrl = '';
export const fetch = fetch_;

const files = require.context('./module', false, /\.js$/)
let modules = {}
files.keys().forEach(key => Object.assign(modules, files(key)));
export default modules

